import {request} from 'umi'


export const fileList = (page: number,originalname:string,type:string) => {
    if(originalname || type){
        return request(`/file?page=${page}&pageSize=12&originalname=${originalname}&type=${type}`)
    }else{
        return request(`/file?page=${page}&pageSize=12`)
    }

}

//删除
export const fileDelete = (indexModuArr:string) => {
  return request(`/file/${indexModuArr}`,{
      method:"DELETE"
  })
}